Leadtools.Codecs Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.12.17
Compress(Byte[],Int32) Method
See Also 
Leadtools.Codecs Namespace > RasterCodecs Class > Compress Method : Compress(Byte[],Int32) Method




data
Array of bytes that holds the data to be compressed.
dataIndex
Index into data where the data starts.
Does buffer-to-buffer JPEG or LEAD CMP compression.

Syntax

Visual Basic (Declaration) 
Overloads Public Sub Compress( _
   ByVal data() As Byte, _
   ByVal dataIndex As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As RasterCodecs
Dim data() As Byte
Dim dataIndex As Integer
 
instance.Compress(data, dataIndex)
C# 
public void Compress( 
   byte[] data,
   int dataIndex
)
Managed Extensions for C++ 
public: void Compress( 
   byte[] data,
   int dataIndex
) 
C++/CLI 
public:
void Compress( 
   array<byte> data,
   int dataIndex
) 

Parameters

data
Array of bytes that holds the data to be compressed.
dataIndex
Index into data where the data starts.

Example

For an example, refer to StartCompress.

Remarks

You must call StartCompress before using this method, and you must call StopCompress to end the compression process. For a description of how these methods work together, refer to StartCompress.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also